package com.nuc.bigdata.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuc.bigdata.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * @author JackLuo
 * @date 2019/11/13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "picture")
public class Picture extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    @NotEmpty
    private String pictureId;

    @NotEmpty
    @Length(max = 100)
    private String pictureOriginalName;

    @NotEmpty
    @Length(max = 200)
    private String picturePath;

    @NotEmpty
    @Length(max = 100)
    private String pictureName;

    @NotEmpty
    @Length(max = 100)
    private String pictureType;

    @NotEmpty
    @Length(max = 10)
    private BigDecimal pictureSize;

    @NotEmpty
    private String pictureSizeUom;

    @Length(max = 100)
    private String thumbnail;
}
